package integerSwap;

public class Main {

    public static void main(String[] args) {
        Integer a = 10;
        Integer b = 20;
        swap(a, b);

        System.out.println("a = " + a + ", b = " + b);
    }

    private static void swap(Integer a, Integer b) {
        Integer tmp = a;
        a = b;
        b = tmp;
    }
}
